#include "comm.h"
//init time0 function ,name is time0_init_squareWare


void time1_init_squareWare()
{
    TMOD=0x01;	//���ö�ʱ��0������ʽ1
    TH1=0XFC;	//����ʱ������ֵ����ʱ1ms
    TL1=0X18;
    ET1=1;		//�򿪶�ʱ��0�ж�
    EA=1;		//�����ж�
    TR1=1;		//������ʱ��0
}


//time0 interrupt function ,name is time0_squareWare
void time0_squareWare() interrupt 3 //��ʱ��0�жϺ���
{

    TH0=0XFC;	//����ʱ������ֵ����ʱ1ms
    TL0=0X18;

	P1_0=!P1_0;
    TF0=0;		//���TF0��־
			
}